﻿using System.Collections.Generic;
using System.Web;
using System.Web.Mvc;
using System.Web.Mvc.Html;
using ControleRepresentante.Logic.Models;

namespace WebSite.ViewModels.IndexViewModels
{
    public class IndexGridButtonsViewModel
    {
        public IEnumerable<ButtonType> ButtonTypes { get; private set; }
        public ModelBase Model { get; private set; }

        public IndexGridButtonsViewModel(IEnumerable<ButtonType> buttonTypes, ModelBase modelBase)
        {
            ButtonTypes = buttonTypes;
            Model = modelBase;
        }

        public IHtmlString Render(HtmlHelper htmlHelper)
        {
            return htmlHelper.Partial("IndexGridButtons", this);
        }
    }
}